    
  <div class="content-inner">
    <div class="marg20-btm">
        <a href=<?php echo site_url('backend_pages/allproducts'); ?> class="btn btn-primary">&#43; View All Products</a>
    </div>
    <form action=<?php echo site_url('backend_pages/addproducts'); ?> method="post" class="form-horizontal" enctype="multipart/form-data" />
    	<?php 
		if($this->uri->segment(3)=='error'){
			echo 'Can not upload !!';
		}
			$proname = array(
						'name' => 'pro_name',
						'placeholder' => 'Product name....',
						'value' => set_value('pro_name'),
						'class' => 'input-xlarge',
						'id' => 'input01',
						'required'=>''
						);
			$proprice = array(
						'name' => 'pro_price',
						'placeholder' => 'Product price....',
						'value' => set_value('pro_price'),
						'class' => 'input-xlarge',
						'id' => 'input01',
						'required'=>''
						);
			$procate = array(
						'' => '---select categary---',
						'1' => 'Computers',
						'2' => 'Phones',
						'required'=>''
						);
			$prostatu = array(
						'' => '--------select status--------',
						'1' => 'Publish',
                  		'0' => 'Unpublish',
						'required'=>''
						);
			$protype = array(
						'' => '--------select type--------',
						'new' => 'New',
						'secondhand' => 'Secondhand',
						'required'=>''
						);
			$proupload = array(
						'name' => 'userfile',
						'placeholder' => 'Product upload....',
						'value' => set_value('userfile'),
						'type' => 'file',
						'size' => '20',
						'class' => 'input-xlarge',
						'id' => 'input01',
						'required'=>''
						);
		?>
    	
    
    
        
		<div class="control-group">
			<label class="control-label" for="input01">Products name<font color="red">*</font></label>
			<div class="controls">
				<?php echo form_input($proname); ?>
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label" for="input01">Category<font color="red">*</font> </label>
			<div class="controls">
				<?php echo form_dropdown('pro_cate',$procate); ?>
			</div>
		</div>
        <div class="control-group">
			<label class="control-label" for="input01">Type<font color="red">*</font> </label>
			<div class="controls">
				<?php echo form_dropdown('pro_type',$protype); ?>
			</div>
		</div>
        <div class="control-group">
			<label class="control-label" for="input01">Status<font color="red">*</font> </label>
			<div class="controls">
				<?php echo form_dropdown('pro_statu',$prostatu); ?>
			</div>
		</div>
        <div class="control-group">
			<label class="control-label" for="input01">Price<font color="red">*</font></label>
			<div class="controls">
				<?php echo form_input($proprice); ?>
			</div>
		</div>
        
		<div class="control-group">
			<label class="control-label" for="input01">Upload Product <font color="red">*</font> </label>
			<div class="controls">
				<?php echo form_input($proupload); ?>
			</div>
		</div>
        <div class="control-group">
			<label class="control-label" for="input01">Description<font color="red">*</font> </label>
			<div class="controls">
				<textarea cols="24" rows="5" name="pro_desc"></textarea>
			</div>
		</div>
		
		<div class="form-actions">
			<input type="submit" class="btn btn-primary" name="btn_upload" value="Save" />
			<a href="<?php echo site_url('backend_pages/allproducts'); ?>" class="btn">Cancel </a>
		</div>
	<?php
	  	echo form_close();
	  ?>
        